package labox.innovation.gameserver.skills.conditions;

import javolution.util.FastList;
import labox.innovation.gameserver.model.actor.instance.FuzePcInstance;
import labox.innovation.gameserver.skills.Env;

public class ConditionTargetClassIdRestriction extends Condition {

	private final FastList<Integer> _classIds;

	public ConditionTargetClassIdRestriction(FastList<Integer> classId) {
		_classIds = classId;
	}

	@Override
	public boolean testImpl(Env env) {
		if (!(env.target instanceof FuzePcInstance))
			return false;
		return (_classIds.contains(((FuzePcInstance) env.target).getClassId().getId()));
	}
}
